package com.million.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.million.eduservice.entity.EduComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.eduservice.entity.vo.comment.CommentVo;
import com.million.eduservice.entity.vo.comment.QueryComment;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-04-07
 */
public interface EduCommentService extends IService<EduComment> {

    //根据课程id 分页查询课程评论信息
    Map<String, Object> selectCommentPage (Page<EduComment> eduCommentPage, String courseId);

    //添加课程评论
    String addComment (EduComment eduComment, HttpServletRequest request);

    //分页条件查询课程评论 渲染后台【评论功能
    Page<CommentVo> selectCommentVoPage (Page<CommentVo> commentVoPage, QueryComment queryComment);
}
